import React, { Component } from 'react'
import { HashRouter, Route, Redirect, Switch } from 'react-router-dom'
import Film from '../components/Film'
import Cinema from '../components/Cinema'
import Center from '../components/Center'
import Hide from '../components/hide'
export default class IndexRouter extends Component {
    render() {
        return (
            <HashRouter>
                <Switch>

                    <Route path="/film" component={Film}></Route>
                    <Route path="/cinema" component={Cinema}></Route>
                    <Route path="/center" component={Center}></Route>
                    <Route path="/hide" component={Hide}></Route>

                    <Redirect from="/" to="/film" />
                </Switch>
            </HashRouter>


        )
    }
}
